import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.HashMap;
import java.util.Map;


public class HomePageMain {

	// Map of titles linked to URLs
	private Map<String, String> urlsByTitles;
	
	public HomePageMain(String inputFile) throws Throwable {
		urlsByTitles = new HashMap<String, String>();
		processFile(inputFile);
	}

	private void processFile(String inputFile) throws Throwable {
		BufferedReader reader = new BufferedReader(
			new FileReader(new File(inputFile)));
		String line = null;
		while ((line = reader.readLine()) != null) {
			String[] elements = line.split("|");
			urlsByTitles.put(elements[0], elements[1]);
		}
		reader.close();
	}

	public static void main(String[] args) throws Throwable {
		new HomePageMain(args[0]).run();
	}

	private void run() {
		// TODO Auto-generated method stub
	}
}
